package com.four.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.four.dao.OrderdetailsMapper;
import com.four.entity.Orderdetails;
import com.four.entity.OrderdetailsParam;
import com.four.service.OrderdetailsService;

@Service
public class OrderdetailsServiceImpl implements OrderdetailsService {
	@Autowired
	OrderdetailsMapper orderdetailsMapper;

	@Override
	public List<Orderdetails> getXiangQing(Integer ordId) {
		// TODO Auto-generated method stub
		return orderdetailsMapper.orderDetails(ordId);
	}

	@Override
	public boolean insertOderDetail(Orderdetails orderdetails) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List<Orderdetails> getOrderDetails(OrderdetailsParam orderdetailsParam) {
		// TODO Auto-generated method stub
		return orderdetailsMapper.getOrderDetails(orderdetailsParam);
	}

	@Override
	public List<Orderdetails> getOrderDetail(Integer ordId) {
		// TODO Auto-generated method stub
		return orderdetailsMapper.getOrderDetail(ordId);
	}

}
